#ifndef __RESIZABLEPROPERTYSHEET_H__
#define __RESIZABLEPROPERTYSHEET_H__

#include "ResizablePropertySheet.h"
#include "DlgItemResizer.h"


class CResizablePropertySheet : public CPropertySheet
{
	DECLARE_DYNAMIC(CResizablePropertySheet)

public:
	CResizablePropertySheet();
	CResizablePropertySheet(UINT nIDCaption, CWnd *pParentWnd = NULL, UINT iSelectPage = 0);
	CResizablePropertySheet(LPCTSTR pszCaption, CWnd *pParentWnd = NULL, UINT iSelectPage = 0);

	virtual ~CResizablePropertySheet();

	// Returns the size/position of the page
	void GetPageRect(RECT *pRect);


protected:

	//{{AFX_VIRTUAL(CResizablePropertySheet)
	public:
	virtual BOOL OnInitDialog();
	protected:
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
	//}}AFX_VIRTUAL

protected:
	//{{AFX_MSG(CResizablePropertySheet)
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
	afx_msg void OnPaint();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()

	CDlgItemResizer m_Resize;
	CRect m_rcPage;
	CRect m_rcClient;
	CRect m_rcGripper;

};


#endif	// __RESIZABLEPROPERTYSHEET_H__
